package org.shop.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.shop.dao.GoodsAppraisesMapper;
import org.shop.entity.GoodsAppraises;
import org.shop.service.GoodsAppraisesService;
import org.shop.service.base.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class GoodsAppraisesServiceImpl extends BaseServiceImpl<GoodsAppraises, Long> implements GoodsAppraisesService{

	@Autowired
	private GoodsAppraisesMapper GoodsAppraisesMapper;
	
	@Override
	public Map<String, Object> getGoodsAppraisesInfo(Map<String, Object> paramMap) {
		List<Map<String, Object>> mapList = GoodsAppraisesMapper.getGoodsAppraisesInfo(paramMap);
        Integer count = GoodsAppraisesMapper.getGoodsAppraisesInfoCount(paramMap);
        //分页数据
        Map<String, Object> dataMap = new HashMap<String, Object>();
        dataMap.put("total", count);
        dataMap.put("rows", mapList);
        return dataMap;
	}

	@Override
	public List<Map<String, Object>> getAboutGoodsOfAppraises(Map<String, Object> paramMap) {
		return GoodsAppraisesMapper.getAboutGoodsOfAppraises(paramMap);
	}
	
	@Override
	public List<Map<String, Object>> getMerchantAppraisesList(Map<String, Object> paramMap) {
		return GoodsAppraisesMapper.getMerchantAppraisesList(paramMap);
	}
	
	
}